<?php
class Users extends CI_Model
{
    function __construct()
    {
        /** Call the Model constructor */
        parent::__construct();
    }

    function checkUserLogin($no, $password)
    {
        $query = $this->db->where("username", $no);
        $query = $this->db->where("password",$password);
        $query = $this->db->limit(1, 0);
        $query = $this->db->get('users');
        return $query->num_rows();
    }
}	